package com.elephant.core.schedule.quartz;

//import org.quartz.*;
//import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author hai
 * @description
 * @date 11:30 2018/9/12
 */
@Configuration
public class QuartzConfig {
//    @Bean
//    public JobDetail teatQuartzDetail(){
//        return JobBuilder.newJob(TestQuartz.class).withIdentity("testQuartz").storeDurably().build();
//    }
//
//    @Bean
//    public Trigger testQuartzTrigger(){
//        SimpleScheduleBuilder scheduleBuilder = SimpleScheduleBuilder.simpleSchedule()
//                .withIntervalInSeconds(10)  //设置时间周期单位秒
//                .repeatForever();
//        return TriggerBuilder.newTrigger().forJob(teatQuartzDetail())
//                .withIdentity("testQuartz")
//                .withSchedule(scheduleBuilder)
//                .build();
//    }
}
